package foo.bar.wiki.plugins.impl;

import foo.bar.wiki.plugins.PageListenerPlugin;
import foo.bar.wiki.plugins.PluginException;
import foo.bar.wiki.domain.Page;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.logging.Log;

/**
 * @author tmjee
 * @version $Date$ $Id$
 */
public class NoOpPageListenerPlugin extends AbstractPlugin implements PageListenerPlugin {

    private static final Log LOG = LogFactory.getLog(NoOpPageListenerPlugin.class);


    public void prePageCreation(Page page) throws PluginException {
        LOG.info("Creating page ["+page.getId()+"]");
    }

    public void postPageCreation(Page page) {
        LOG.info("Page ["+page.getId()+"] created");
    }

    public void prePageRemoval(Page page) throws PluginException {
        LOG.info("Removing page ["+page.getId()+"] ");
    }

    public void postPageRemoval(Page page) {
        LOG.info("Page ["+page.getId()+"] removed");
    }

    public void prePageUpdate(Page page) throws PluginException {
        LOG.info("Updating page ["+page.getId()+"]");
    }

    public void postPageUpdate(Page page) {
        LOG.info("Page ["+page.getId()+"] updated");
    }
}
